'use strict';
angular.module('app').directive('appPositionInfo',[function(){
    return{
        restrict:'A',
        replace:true,
        templateUrl:'view/template/positioninfo.html',
        scope:{
            isActive:'=',
            isLogin:'=',
            pos:'='
        },
        link:function($scope){
            $scope.imagePath =$scope.isActive? 'image/star-active.png':'image/star.png';
        }
    }
}]);